package com.gao.baseboot.singletondiprototype;

import com.gao.baseboot.prototype.PrototypeBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 正常的注入prototype作用域的Bean,会只注入一次
 *
 * @author GaoXi
 * @date 2022/2/21 19:45
 */
@Component
public class CommonDi {
    @Autowired
    private PrototypeBean prototypeBean;


    public PrototypeBean getPrototypeBean() {
        return prototypeBean;
    }
}
